package com.powernode.business.mapper;

import com.powernode.business.domain.Rent;
import com.powernode.common.core.domain.model.LoginUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface RentMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Rent record);

    int insertSelective(Rent record);

    Rent selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Rent record);

    int updateByPrimaryKey(Rent record);

    List<Rent> selectRent(@Param("rent") Rent rent, @Param("deptId") Long deptId);

    List<Rent> selectRentById(@Param("id") List<Integer> id);

    int delRent(@Param("id") List<Integer> id, @Param("username") String username);

    Rent selectByRentSn(String rentSn);
}